<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

 <style>
	#cacheDiv {
	font-size:14px;
  width: 100%; height: 100%;
  border: 0; padding: 5; margin: 0;
}
	
	</style>
</head>
<body class="nihilo">

	
	<div style="margin:10px;">位置: 监控管理  > 应用日志</div>
	<div style="margin:10px;">
		代号:<input dojoType="dijit.form.TextBox" type="text" id="error_no" name="error_no" value="<?=$error_no?>"><button dojoType="dijit.form.Button" onclick='searchErrorLog()'>查询</button>
	</div>
	
	<table style="width:700px;margin:10px">
		<thead>
		<tr >
		<td style="border-bottom:1px solid #ccc;width:50px;background-color:#eee">代号</td>
		
		<td style="border-bottom:1px solid #ccc;width:300px;background-color:#eee">错误</td>
		<td style="border-bottom:1px solid #ccc;width:300px;background-color:#eee">文件</td>
		<td style="border-bottom:1px solid #ccc;width:50px;background-color:#eee">行</td>
		<td style="border-bottom:1px solid #ccc;width:150px;background-color:#eee">操作</td>
		</tr>
		</thead>
		<tbody >
		<?php if(isset($items['records'])){ foreach($items['records'] as $k=>$item){?>
		<tr id="row_<?=$item['error_no']?>" <?if($k%2) echo 'style="background-color:#efefef"'?> >
		<td><?=$item['error_no']?></td>
		<td><?=$item['errmsg']?></td>
		<td><?=$item['filename']?></td>
		<td><?=$item['linenum']?></td>
		<td><button dojoType="dijit.form.Button" onclick="viewErrorLog('<?=$item['error_no']?>');">详细</button><button dojoType="dijit.form.Button" onclick="deleteErrorLog('<?=$item['error_no']?>');">删除</button></td>
		</tr>
		<? }}?>
		</tbody>
		<tfoot>
		<tr><td colspan="5" align="right"><?=$items['page_array']['pagebar'];?></td></tr>
		</tfoot>
	</table>
	
		

   <!-- Alert div -->
 <div dojoType="dijit.Dialog" id="errorLogDialog" title="查看BackTrace信息"
    execute="alert('submitted w/args:\n' + dojo.toJson(arguments[0], true));">
   <div id="errorLogValue"></div>
 </div>

 

</body>
</html>